package com.gupao.rpc.protocol.proxy;

import com.gupao.rpc.protocol.spring.reference.RpcInovkerProxy;

import java.lang.reflect.Proxy;

/**
 * @author SuperWein
 */
@Deprecated
public class RpcClientProxy {

    public <T> T clientProxy(Class<T> classInterfaces, String host, int port) {
        return (T) Proxy.newProxyInstance(classInterfaces.getClassLoader(),
                new Class[]{classInterfaces}, new RpcInovkerProxy(host, port));
    }

}
